<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改社管排班管理')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-Managerwktime-edit" th:object="${cmManagerWktime}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">排班日：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="Date" th:value="${#dates.format(cmManagerWktime.Date, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">排班时：</label>
                <div class="col-sm-8">
                    <select name="time" class="form-control m-b" th:with="type=${@dict.getType('sys_manager_time')}" required>
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{time}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">真实姓名：</label>
                <div class="col-sm-8">
                    <select name="openId" class="form-control m-b" required>
<!--                        <option value="">所有</option>-->
                        <option th:each="list:${managerlist}" th:value="${list.openid}" th:text="${list.realname}" th:selected="${list.openid}==*{openId}?true:false" ></option>
                    </select>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "CmSystem/Managerwktime";
        $("#form-Managerwktime-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-Managerwktime-edit').serializeArray());
            }
        }

        $("input[name='Date']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>